package com.example.concurrency.threadLocal;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 文希
 * @create 2019-05-19 13:54
 */
@Controller
@RequestMapping("/threadLocal")
public class ThreadLocalController {

    @ResponseBody
    @RequestMapping("/test")
    public Object test(){
        return RequestHolder.getId();
    }
}
